package org.song.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.List;

@ApiModel("博客类型实体")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Alias("Type")
public class Type {
    @ApiModelProperty(value = "主键" , notes = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "类型名" , notes = "类型名")
    private String typeName;

    @ApiModelProperty(value = "该类型对应的博客集合" , notes = "该类型对应的博客集合")
    private List<Blog> blogs;

}
